/**
 * @（#）:AppIdentity.java
 * @description:
 * @author: zhangjh 2017年4月13日
 * @version: Version 1.0
 */
package com.easyCms.base.dao;

import com.easyCms.base.entity.AppIdentity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface AppIdentityDAO
        extends PagingAndSortingRepository<AppIdentity, Long>, JpaSpecificationExecutor<AppIdentity> {

    List<AppIdentity> findByStateAndLoginName(Integer state, String loginName);

    AppIdentity findByIdAndState(Long id, int state);

    AppIdentity findByHamiCodeAndState(String hamiCode, int stateValid);

}
